﻿using System.Windows;

namespace Alimentador.CustomControls
{
    /// <summary>
    /// Interaction logic for EvolutionPopup.xaml
    /// </summary>
    public partial class EvolutionPopup : Window
    {
        public EvolutionPopup()
        {
            InitializeComponent();

            //List<double> WeightList = new List<double>();
            //List<double> WaistList = new List<double>();
            //foreach (PatientBiometricData pbd in MainWindow.CurrentPatient.BiometricDataHistory)
            //{
            //    WeightList.Add(pbd.PatWeight);
            //    WaistList.Add(pbd.PatWaist);
            //}

            WeightChart.DataContext = MainWindow.CurrentPatient.BiometricDataHistory;
            WeistChart.DataContext = MainWindow.CurrentPatient.BiometricDataHistory;
        }

        private void CloseBtn_Click(object sender, RoutedEventArgs e)
        {
            Close();
        }
    }
}
